package app.fugema.shop.main.order.model;

import java.util.List;

import androidx.databinding.BaseObservable;
import app.fugema.shop.main.invoice.model.InvoiceInfoParams;

public class VatInvoiceBean extends BaseObservable
{

    /**
     * Id : 4
     * UserId : 684
     * InvoiceType : 3
     * Name : 湖北汉丹机电有限公司
     * Code : 914206007674415815
     * InvoiceContext : 公司
     * RegisterAddress : 襄城区虎头山冲1号
     * RegisterPhone : 07103059520
     * BankName : 湖北银行襄阳分行襄城支行
     * BankNo : 420602000120020001195
     * RealName : 刁刁平
     * CellPhone : 13125043081
     * Email : null
     * RegionID : 26122
     * Address : 湖北省 长虹路001号
     * IsDefault : 1
     * RegionFullName : 湖北省 襄阳市 樊城区 王寨街道
     * InvoiceDay : null
     * ModifiedColumns : []
     * EnableLazyLoad : true
     * IgnoreReference : false
     */

    private int Id;
    private int UserId;
    // 2  电子发票   3 增值税发票  0=不需要发票,1=普通发票，2=电子普通发票，3=增值税发票
    private int InvoiceType;

    private String Name;
    private String Code;
    private String InvoiceContext;
    private String RegisterAddress;
    private String RegisterPhone;
    private String BankName;
    private String BankNo;
    private String RealName;
    private String CellPhone;
    private String Email;
    private int RegionID;
    private String Address;
    private int IsDefault;
    private String RegionFullName;
    private String InvoiceDay;
    private boolean EnableLazyLoad;
    private boolean IgnoreReference;
    private List<Object> ModifiedColumns;

    public int getId() {
        return Id;
    }

    public void setId(int Id) {
        this.Id = Id;
    }

    public int getUserId() {
        return UserId;
    }

    public void setUserId(int UserId) {
        this.UserId = UserId;
    }

    public int getInvoiceType() {
        return InvoiceType;
    }

    public void setInvoiceType(int InvoiceType) {
        this.InvoiceType = InvoiceType;
    }

    public String getName() {
        return Name;
    }

    public void setName(String Name) {
        this.Name = Name;
    }

    public String getCode() {
        return Code;
    }

    public void setCode(String Code) {
        this.Code = Code;
    }

    public String getInvoiceContext() {
        return InvoiceContext;
    }

    public void setInvoiceContext(String InvoiceContext) {
        this.InvoiceContext = InvoiceContext;
    }

    public String getRegisterAddress()
    {
        return RegisterAddress;
    }

    public void setRegisterAddress(String RegisterAddress)
    {
        this.RegisterAddress = RegisterAddress;
    }

    public String getRegisterPhone()
    {
        return RegisterPhone;
    }

    public void setRegisterPhone(String RegisterPhone) {
        this.RegisterPhone = RegisterPhone;
    }

    public String getBankName() {
        return BankName;
    }

    public void setBankName(String BankName) {
        this.BankName = BankName;
    }

    public String getBankNo() {
        return BankNo;
    }

    public void setBankNo(String BankNo) {
        this.BankNo = BankNo;
    }

    public String getRealName() {
        return RealName;
    }

    public void setRealName(String RealName) {
        this.RealName = RealName;
    }

    public String getCellPhone() {
        return CellPhone;
    }

    public void setCellPhone(String CellPhone) {
        this.CellPhone = CellPhone;
    }

    public String getEmail() {
        return Email;
    }

    public void setEmail(String Email) {
        this.Email = Email;
    }

    public int getRegionID() {
        return RegionID;
    }

    public void setRegionID(int RegionID) {
        this.RegionID = RegionID;
    }

    public String getAddress() {
        return Address;
    }

    public void setAddress(String Address) {
        this.Address = Address;
    }

    public int getIsDefault() {
        return IsDefault;
    }

    public void setIsDefault(int IsDefault) {
        this.IsDefault = IsDefault;
    }

    public String getRegionFullName() {
        return RegionFullName;
    }

    public void setRegionFullName(String RegionFullName) {
        this.RegionFullName = RegionFullName;
    }

    public String getInvoiceDay() {
        return InvoiceDay;
    }

    public void setInvoiceDay(String InvoiceDay) {
        this.InvoiceDay = InvoiceDay;
    }

    public boolean isEnableLazyLoad() {
        return EnableLazyLoad;
    }

    public void setEnableLazyLoad(boolean EnableLazyLoad) {
        this.EnableLazyLoad = EnableLazyLoad;
    }

    public boolean isIgnoreReference() {
        return IgnoreReference;
    }

    public void setIgnoreReference(boolean IgnoreReference) {
        this.IgnoreReference = IgnoreReference;
    }

    public List<Object> getModifiedColumns() {
        return ModifiedColumns;
    }

    public void setModifiedColumns(List<Object> ModifiedColumns) {
        this.ModifiedColumns = ModifiedColumns;
    }

    public static VatInvoiceBean getSimpleInvoice(InvoiceInfoParams invoiceInfoParams)
    {
        VatInvoiceBean invoiceBean = new VatInvoiceBean();
        invoiceBean.setInvoiceType( invoiceInfoParams.getInvoicetype() );
        invoiceBean.setInvoiceContext( invoiceInfoParams.getInvoicecontext() );
        invoiceBean.setName( invoiceInfoParams.getName() );
        invoiceBean.setCode( ""+ invoiceInfoParams.getCode() );
        return invoiceBean;
    }

}
